<template>
    <view>
        {{ num1 }}
    </view>
    <view>
        {{ test }}
    </view>
    <view>
        {{ arr[2] }}
    </view>
    <view>
        {{ obj.name }}
    </view>
</template>

<script setup>
import { ref } from 'vue';

let num1 = ref(6);
setInterval(() => {
    num1.value++;
    console.log(num1.value);
}, 1000);

let test = ref("线下米")

let arr = ref([1, 2, 3, 4])

let obj = ref({
    name: "张三",
    age: 18
})

obj.value.name = "李四"
arr.value[0] = 100
</script>

<style lang="scss">

</style>
